"""数据字典"""


class EquipType:
    """设备类型"""

    BOX_TRANSF = 1
    AC_COMBNR_BOX = 2
    INVERT = 3
    DC_COMBNR_BOX = 4
    STRING = 5
    MAP = {
        BOX_TRANSF: "箱变",
        AC_COMBNR_BOX: "交流汇流箱",
        INVERT: "逆变器",
        DC_COMBNR_BOX: "直流汇流箱",
        STRING: "组串",
    }


class ProcStatus:
    """处理状态"""

    UNPROCESSED = 1
    PROCESSED = 2
    IGNORED = 3
    MAP = {UNPROCESSED: "未处理", PROCESSED: "已处理", IGNORED: "已忽略"}


class DustLevel:
    """灰尘评价等级"""

    CLEAN = 1
    LESS = 2
    MORE = 3
    SERIOUS = 4
    MAP = {CLEAN: "洁净", LESS: "较少", MORE: "较多", SERIOUS: "严重"}


class InvertType:
    """逆变器类型"""

    STRING_MODE = 1
    CENTRALIZED = 2
    MAP = {STRING_MODE: "组串式逆变器", CENTRALIZED: "集中式逆变器"}


class ArrangMode:
    """组串排列方式"""

    VERTICAL = 1
    TRANSVERSE = 2
    MAP = {VERTICAL: "竖", TRANSVERSE: "横"}


class AlertLevel:
    """告警等级"""

    ONE_LEVEL = 1
    TWO_LEVEL = 2
    THREE_LEVEL = 3
    MAP = {ONE_LEVEL: "一级", TWO_LEVEL: "二级", THREE_LEVEL: "三级"}


class AlertType:
    """告警类型"""

    NO_COMMU = 1
    SHUTDOWN = 2
    OTHER_ALERT = 3
    MAP = {NO_COMMU: "无通信", SHUTDOWN: "停机", OTHER_ALERT: "其他告警"}
